//
//  PlayFlowNodes2ViewController.m
//  NaRiLSVMT
//
//  Created by jmsre on 14-8-29.
//  Copyright (c) 2014年 helloyouth.org. All rights reserved.
//

#import "PlayFlowNodes2ViewController.h"
#import "NoticeInfoViewController.h"
#import "UIViewController+MJPopupViewController.h"

@interface PlayFlowNodes2ViewController ()<NoticePopupDelegate>
{
    NoticeInfoViewController *noticeInfoViewController;
}
@end

@implementation PlayFlowNodes2ViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
   // self.navigationController.navigationBar.hidden = YES;
    //[self.navigationController.navigationBar addSubview:self.navigationBarView];//navigtionBar
    
    self.flowName.text = [self.receiceDicData objectForKey:@"flowName"];
    self.nodeName.text = [self.receiceDicData objectForKey:@"nodeName"];
    self.screenName.text = [self.receiceDicData objectForKey:@"screenName"];
    self.screenIdStr = [self.receiceDicData objectForKey:@"screenId"];
    self.templateIdStr = [self.receiceDicData objectForKey:@"templateId"];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


#pragma mark-
#pragma mark- NoticePopupDelegate
- (void)backButtonClicked:(NoticeInfoViewController *)noticeInfoController
{
    [self dismissPopupViewControllerWithanimationType:MJPopupViewAnimationFade];
    noticeInfoController = nil;
}


- (IBAction)backToAction:(id)sender {
    
    [self.navigationController popViewControllerAnimated:YES];
    self.navigationController.navigationBarHidden = NO;
}

- (IBAction)noticeInfoAction:(id)sender {
    
    noticeInfoViewController = nil;
    noticeInfoViewController = [[NoticeInfoViewController alloc] initWithNibName:@"NoticeInfoViewController" bundle:nil];
    noticeInfoViewController.delegate = self;
    noticeInfoViewController.screenId = self.screenIdStr;
    noticeInfoViewController.templateId = self.templateIdStr;
    [self presentPopupViewController:noticeInfoViewController animationType:MJPopupViewAnimationFade];
}

- (IBAction)playAction:(id)sender {
}

- (IBAction)enlargerAction:(id)sender {
}

- (IBAction)reduceAction:(id)sender {
}



@end
